/*
    程序：
    编译：g++ watchdog_main.cpp watchdog.cpp -o keepalive
*/
#include "watchdog.h"

int main(){

    std::cout << "保活程序！！！" << std::endl;

    watchdog a;
    a.init("/dev/watchdog");

    a.getWatchDogTime();//获取超时时间

    a.enab();

    while (1)
    {
        /* code */
        sleep(10);
        printf("feed dog ok !!!\n\r");
        a.feedDog();
    }
    


    return 0;
}